import re

s = 'I study python 3.11 everyday'
pattern = '\d\.\d+'

result = re.search(pattern, s)
print(result, result.group())

r2 = re.findall(pattern, s)
print(r2)
r3 = re.findall(pattern, 'I study 3.11 and 3.14')
print(r3)
